<script type="text/javascript" >
    stFlickrToolbox.load_tooltip();
    jQuery("#flickrForm").validate({
        errorPlacement: function(error, element) {
        }
    });

    function blockscreen(){
        jQuery.blockUI({
                    message: jQuery('#loading'),
                    css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#000',
                    '-webkit-border-radius': '10px',
                    '-moz-border-radius': '10px',
                    opacity: .5,
                    color: '#fff'
                }
            });
    }
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
        <form class="stform" id="flickrForm" enctype="multipart/form-data" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >

            <ul>
                <li>
                    <label><?php _e('Title', $config['plugin_name']); ?>:</label>
                    <div>
                        <input value="<?php echo $result->title ?>" class="required" name="data[title]" id="title1" type="text"/>
                    </div>
                    <br clear="both" />
                </li>

                <li>
                    <label><?php _e('Choose file', $config['plugin_name']); ?>:</label>
                    <div>
                        <input value="<?php echo $result->src ?>" class="required" name="src"  type="file"/>
                    </div>
                    <br clear="both" />
                </li>

                <li>
                    <label><?php _e('Description', $config['plugin_name']); ?>:</label>
                    <div>
                        <textarea class="" id="description" name="data[description]" cols="5" rows="5"></textarea>

                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <label><?php _e('Tags', $config['plugin_name']); ?>:</label>
                    <div>
                        <textarea id="tag" name="data[tag]" cols="5" rows="5"></textarea>
                    </div>
                    <br clear="both" />
                </li>
                <li><input type="submit" onclick="blockscreen()" value="Submit"/></li>
            </ul>
            <input type="hidden" value="<?php echo $result->id ?>" id="id" name="data[id]"/>
        </form>
    </div>
</div>

